var __async = (__this, __arguments, generator) => {
  return new Promise((resolve, reject) => {
    var fulfilled = (value) => {
      try {
        step(generator.next(value));
      } catch (e) {
        reject(e);
      }
    };
    var rejected = (value) => {
      try {
        step(generator.throw(value));
      } catch (e) {
        reject(e);
      }
    };
    var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
    step((generator = generator.apply(__this, __arguments)).next());
  });
};
import Koa from "koa";
import * as esbuild from "esbuild";
import fs from "fs/promises";
const app = new Koa();
app.use((ctx, next) => __async(void 0, null, function* () {
  yield next();
  console.log(ctx.request.url);
}));
app.listen(82);
function getTransformedFile() {
  return __async(this, null, function* () {
    const initialFileContent = yield fs.readFile("./js/index.ts", "utf8");
    const transformedFile = yield esbuild.transform(initialFileContent, {});
    return transformedFile.code;
  });
}
